package com.cafuc.discipline.controller;

import com.cafuc.discipline.anno.EncryptFilter;
import com.cafuc.discipline.respone.Result;
import com.cafuc.discipline.service.DepartmentService;
import com.cafuc.discipline.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import javax.annotation.Resource;
import java.util.HashMap;

/**
 * @author Mete
 * @createTime 2022/11/23 20:57
 * @description
 */

@RestController
@Api(tags = "部门管理相关接口")
public class DepartmentController {
    @Resource
    private DepartmentService departservice;

    @GetMapping("/cafuc/depart/get")
    @ApiOperation("获取部门列表的接口")
    @EncryptFilter(decryptRequest = false)
    public Result getdepart(){
        return departservice.selectDep();
    }
}
